package com.ledi.guns.common.persistence.dao;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.ledi.guns.common.persistence.model.Role;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
  * 角色表 Mapper 接口
 * </p>
 *
 * @author ledi
 * @since 2017-07-11
 */
public interface RoleMapper extends BaseMapper<Role> {

	/**
	 * 通过name获取id
	 * @param name
	 * @return
	 */
	int getIdByName(@Param("name") String name);
}
